<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>后台管理系统</title>
    <link rel="icon" href="/img/logo.png" type="image/x-icon"/>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet" href="/css/admin/project/free_list.css">
    <script src="/script/jquery-3.3.1.min.js"></script>
    <script src="/layui/layui.js"></script>
    <script src="/script/admin/spider/list.js"></script>
    <script type="text/html" id="barDemo">
        <a class="layui-btn layui-btn-xs" th:if="${isAdmin}" lay-event="save">保存</a>
        <a class="layui-btn layui-btn-xs"  lay-event="create">生成</a>
        <a class="layui-btn layui-btn-xs" th:if="${isAdmin}" lay-event="machine">查看伪原创</a>
        <a class="layui-btn layui-btn-xs"  lay-event="del">删除</a>
    </script>
    <script type="text/html" id="isSaveBar">
        {{# if(d.isSave == 1){ }}
        <span class="layui-badge layui-bg-blue">已保存</span>
        {{#  }else{ }}
        <span class="layui-badge">未保存</span>
        {{#  } }}
    </script>
</head>
<body>
<input type="hidden" id="isAdmin" th:value="${isAdmin}">
        <div class="layui-form form">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">项目名称</label>
                    <div class="layui-input-inline">
                        <input type="text" name="title" id="title"  autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">来源</label>
                    <div class="layui-input-inline">
                        <select name="source"  id="source" lay-search="">
                            <option></option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline" >
                    <label class="layui-form-label">是否重写</label>
                    <div class="layui-input-inline " style="width: unset">
                        <input type="radio" name="onlyWrite" value="" title="全部"  checked="">
                        <input type="radio" name="onlyWrite" value="1" title="是" >
                        <input type="radio" name="onlyWrite" value="0" title="否" >
                    </div>
                </div>
                <div class="layui-inline" >
                    <label class="layui-form-label">是否已保存</label>
                    <div class="layui-input-inline " style="width: unset">
                        <input type="radio" name="isSave" value="" title="全部"  checked="">
                        <input type="radio" name="isSave" value="1" title="是">
                        <input type="radio" name="isSave" value="0" title="否">
                    </div>
                </div>
                <div class="layui-input-block">
                    <button class="layui-btn"  id="search" >搜索</button>
                    <button class="layui-btn"  id="run" th:if="${isAdmin}">一键重跑</button>
                    <h3 style="display: inline-block;color: red;margin-left: 5%">每2个小时自动刷新一次数据！</h3>
                </div>
            </div>
        </div>

        <div class="layui-row">
            <table class="layui-hide" id="data" lay-filter="dataTable"></table>
        </div>
</body>
</html>